package pers.elonnsu.springbootmall.model.dao;

import org.apache.ibatis.annotations.Param;
import pers.elonnsu.springbootmall.model.pojo.User;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    User selectByUserName(String userName);

    User selectLoginUser(@Param("userName") String userName, @Param("password") String password);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}